import { observable, action } from 'mobx'
import { ajax } from '../../api'

class Anno {

    // 会员列表
    @observable annList: Array<object> = []
    @action changeannList = async (payload: any) => {
        let { code, result }: any = await ajax.getannolist(payload)
        if (code == 200) {
            this.annList = result
        }
    }

    // 会员列表数据
    @action vipgetannList = (palyoad: any) => {
        this.annList = palyoad
    }

}

export default new Anno()